{extend name="base" /}
{block name="body"}



<div class="am-padding am-padding-bottom-0">
	<strong class="am-text-primary am-text-lg">文件管理</strong> / <small>图片</small>
</div>

<div class="am-padding am-btn-toolbar">
	<div class="am-btn-group am-btn-group-xs">
		<a href="{:url('admin/Files/index')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 列表</a>
		<button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
	</div>
</div>

<div class="am-padding">
	<ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-6 am-avg-lg-8 am-gallery-default am-gallery-upload" data-am-gallery="{ pureview: true }" >
		{foreach name="list" item="vo"}
		<li>
			<div class="am-gallery-item">
				<div class="image">
					<img src="{$vo.url|get_thumb=###,200,200}" data-rel="{$vo.url}" data-am-popover="{content: '{notempty name='$vo.purpose'}用途：{$vo.purpose_text}<br/>{/notempty}大小：{$vo.size}<br/>{eq name='$vo.purpose' value='archives'}引用文档：{$vo.archives_count} 篇<br/>{/eq}{eq name='$vo.purpose' value='page'}引用单页：{$vo.page_count} 篇<br/>{/eq}创建时间：{$vo.create_time|date='Y-m-d H:s'}', trigger: 'hover focus'}"/>
					<span href="{:url('admin/Files/delete',['id'=>$vo.id])}" class="delete ajax-delete"><i class="am-icon-times"></i> 删除</span>
				</div>
			</div>
		</li>
		{/foreach}
	</ul>

	{$list|raw}
</div>






{/block}